package com.thenmorethings.dao.impl;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;

import com.thenmorethings.dao.EssayDao;
import com.thenmorethings.entity.Essay;

public class EssayDaoImpl extends BaseDaoImpl<Essay> implements EssayDao{

	@Override
	public List<Essay> rowPagination(Integer start, Integer endrow) {
		Query qr = getSession().createQuery("from Essay");
		qr.setFirstResult(start);
		qr.setMaxResults(endrow);
		List<Essay> list = qr.list();
		return list;
	}


	


	
}
